In [1]:
%cat fourier_transform.m
In [2]:
%cat fourier_test.m
[x y] = meshgrid(1:80); C = sqrt((x-40).^2+(y-40).^2)<=20; imshow(C)
In [9]:
%pylab inline
x,y = meshgrid(range(80), range(80))
C = sqrt((x-40)**2+(y-40)**2) <= 20
imshow(C)
Out[9]: